package com.tianruan.dc.common.constant;

/**
 * @PS 全局异常枚举类
 */
public enum GlobalExceptionEnum {

    NOT_FOUND_ERROR(404, "没有找到资源"),

    ERROR(1000, "我是异常弹出框"),

    ERROP_USER_PASSWORD(1000, "用户名不存在或者密码错误"),

    ID_BLANK_ERROR(1000, "id不能为空"),

    ERROP_PASSWORD(1001, "密码错误"),

    WARNING(2000, "我是警告弹出框"),

    NOT_NO_WARNING(2001, "学号不存在！"),

    NOT_GATE_WARNING(2002, "闸机编号不存在"),

    NOT_GATE_ERROR(2010, "闸机状态有问题"),

    LOGOUT_SUCCESS(200, "退出成功"),

    MODIFY_PASSWORD_SUCCESS(200, "修改密码成功"),

    RESET_PASSWORD_SUCCESS(200, "重置密码成功"),

    PERMISSION_DENIED(403, "没有权限"),

    CONSTRAINT_VIOLATION_ERROR(10001, "认证错误"),

    STUDENT_NO_BLANK_ERROR(1000, "学生学号不能为空"),

    DCCLOSURE_MEDIUM_DUPLICATE(1000, "请不要重复提交中期检查"),

    NULL_ERROR(1000, "为空报错"),

    SUCCESS(200, "成功"),

    DUPLICATE_USERNAME(250, "用户名已存在"),

    NO_BLANK_ERROR(251, "用户名不为空"),

    FAIL_TO_SENDSMSCODE(230,"发送短信验证码失败"),

    SUCCESS_TO_SENDSMSCODE(200,"发送短信验证码成功"),

    ERROP_CODE(234,"验证码错误"),

    SUCCESS_TO_BIND(200,"绑定手机成功"),

    FAIL_TO_BIND(233,"绑定手机失败"),

    SUCCESS_TO_REGISTER(200,"注册成功"),

    FAIL_TO_RREGISTER(253,"注册失败"),

    FAIL_TO_BIND_WX(241,"微信绑定失败"),

    SUCCESS_TO_BIND_WX(200,"微信绑定成功"),

    EXCEPTION_BIND_WX(242,"微信绑定异常"),

    EXCEPTION_BIND_ONLY_WX(243,"只能一个微信只能注册一个账号");


    private Integer code;

    private String message;

    GlobalExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
